package com.example.websocket.Thread;

import com.example.websocket.mycontroller.WebSocket;
import org.springframework.stereotype.Component;

@Component
public class WebSocketThread implements Runnable{
    private WebSocket webSocket;

    @Override
    public void run() {
        while (true){
            try {
                Thread.sleep(15000);//每15秒向前端推送数据
               // myWebSocket.AppointSending();
            }catch (Exception e){}
        }
    }
}
